<%@page language="java" pageEncoding="UTF-8"%>    
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="java.net.*" %>
<%@page import="orest.back.achieve.UserSessionAction"%>
<%@page import="orest.common.valueobject.UserSessionInfo"%>
<%@page import="orest.common.util.Tools"%>
<%@page import="java.util.*"%>
<%@page import="orest.common.util.CachedObject"%>
<%@page import="orest.common.util.CacheManager"%>
<%@page import="orest.common.util.ContecxtOperation"%>
<%
	   String path = request.getContextPath();
	   response.setHeader("ContentType","text/xml");  
       response.setHeader("Pragma","No-Cache");   
       response.setDateHeader("Expires",0);   
       response.setHeader("Cache-Control","No-Cache");  
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>科技成果高级搜索</title>


<link href="<%=path%>/common/css/layout.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/common/css/user.css" rel="stylesheet" type="text/css" />


<script language = "javascript" src = "../common/js/list.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/pool.js" type = "text/javascript"></script>
<script language = "javascript" src = "js/setcondition.js" type = "text/javascript"></script>

<script type="text/javascript" src="<%=path%>/includes/styleBase/js/jquery.js"></script>


<script language="javascript">


//重置
function resetForm(){
	$("#item_3").val("");
	$("#topicwords").val("");
	$("#item_9").val("");
	$("#cocreator").val("");
	$("#startyear").val("");
	$("#endyear").val("");
	$("#NewEnergyClass").val("");
	$("#province").val("");
}
	
//查看科技成果
function viewKjcg(kjcgid,kjcgname){
	window.open("<%=path%>/achieve/info.jsp?kjcgid="+$.trim(kjcgid)+"&title="+$.trim(kjcgname));
}

//推荐科技成果
function load_tjkjcg(divid,http){
	$.ajax({
		type:"POST",
		url:http,
		error:function(msg)
		{
			//alert("操作失败，请重试！"+msg);
		},
	    success:function(data)
	    {
	    	var data = eval("("+data+")");
	    	//alert(data);
			var html="";
			var showcount = 10;
			var i=0;
			for(i=0;i<data.length&&i<showcount;i++){
				var kjcgname = data[i]['kjcgname'];
				html+="<li>";
				html+="<a href='#2012' style=\"width:100%\" onclick=\"viewKjcg('"+data[i]['kjcgid']+"')\">"+kjcgname.substring(0,20)+"</a></li>";
				//html+="<span>";
				//html+=data[i]['unitname'].substring(0,8);
				//html+="</span>";
			}
			for(var j=i;j<showcount;j++){
				html+="<li><a style=\"width:100%\" href=\"#\"></a></li>";
			}
			$("#"+divid).html(html);
		}
	});
}

	
$("document").ready(function()
{
	  getProvince_o();
      //getZdxxByZddmXxdm("item_2","");
      //getZdxxByZddmXxdm("item_16","");
      //getZdxxByZddmXxdm("item_126_net","");
      getOption_o("common","NewEnergyClass","");
      
      //加载推荐科技成果
	  var http = "<%=path%>/front/AchieveServlet?method=getRecommendKjcgList&showType=ChannelShow";
	  load_tjkjcg("zylist",http);
});
</script> 


</head>

<body>


<%@include file="../common/toplogin.jsp"%>
<%@include file="../common/topbanner.jsp"%>
<%@include file="../common/topmenu.jsp"%>




<form id="searchform" name="searchform" action="<%=path%>/achieve/search_results.jsp" method="post">

<!--页面主体部分-->
<div id="contentmain">

    <div id="all_content_left">
    	<%@include file="../common/adleft.jsp"%>
		<div id="border_box">
		    <div id="ind_title"><a href="<%=path%>/achieve/search_results.jsp?key=ChannelShow='1'&topicname=推荐成果" class="blue"><font>推荐成果</font></a><span><a href="<%=path%>/achieve/search_results.jsp?key=ChannelShow='1'&topicname=推荐成果" class="blue">更多...</a></span></div>
			<ul id="zylist">
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
			</ul>
		</div>
	</div>
	
	
	<div id="all_content_right">
	    <div id="topsearchbox">
				<ul>
					<li><img src="<%=path%>/common/images/search/icon.gif" /></li>
					<li><span class="bluetitle">科技成果高级搜索</span></li>
					<li>
						&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=path%>/achieve/needforachieve.jsp" target="_self" class="blue">帮您找项目</a>
					</li>
				</ul>
		</div>
		<div id="border_box" style="height:510px;">
		    <div id="ind_title"><font>当前位置：<a href="/cms" class="blue">首页</a> > <a href="<%=path%>/achieve/achieveIndex.jsp" class="blue">科技成果</a> > 高级查询</font><span></span></div>
			<div style=" width:90%; height:auto; margin:0 auto; overflow:hidden;"><br />
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
			  <tr>
				<td width="22%" height="35" align="right"><span class="bluetitle">项目名称：</span>&nbsp;</td>
				<td width="33%" align="left">
					<input type="text" name="item_3" id="item_3" class="inputtext1"/>
					<input type="hidden" name="topicname" id="topicname" />
                    <input type="hidden" name="key" id="key" />
				</td>
				<td colspan="2" align="left">&nbsp;请输入项目的名称</td>
			  </tr>
			  <tr>
				<td align="right" height="35"><span class="bluetitle">项目关键字：</span>&nbsp;</td>
				<td align="left"><input type="text" name="topicwords" id="topicwords" class="inputtext1"/></td>
				<td colspan="2" align="left">&nbsp;请输入项目的关键字</td>
			  </tr>
			  <tr>
				<td align="right" height="35"><span class="bluetitle">完成单位：</span>&nbsp;</td>
				<td align="left"><input type="text" name="item_9" id="item_9" class="inputtext1"/></td>
				<td colspan="2" align="left">&nbsp;请输入项目的单位名称</td>
			  </tr>
			  <tr>
				<td align="right" height="35"><span class="bluetitle">完成人：</span>&nbsp;</td>
				<td align="left"><input type="text" name="cocreator" id="cocreator" class="inputtext1"/></td>
				<td colspan="2" align="left">&nbsp;请输入项目的负责人</td>
			  </tr>
			  <tr>
				<td align="right" height="35"><span class="bluetitle">项目年份：</span>&nbsp;</td>
				<td align="left">
					
			  		  <%Calendar c=Calendar.getInstance();
						int thisyear=c.get(Calendar.YEAR);
						int length=thisyear-1984;
			 			ArrayList year=new ArrayList();
			
			    			for(int i = 0;i <length;i++) {                                                                                                                                          
			                        	year.add(Integer.toString(thisyear-i));                                    	                                     	   
			   			}%>
				   			
                     	<select  id="startyear" name="startyear" style="margin-top:4px;">
                     		<option value="" selected>请选择</option>
                            <%// String year[] = {"","2010","2009","2008","2007","2006","2005","2004","2003","2002","2001","2000","1999","1998","1997","1996","1995","1994","1993","1992","1991","1990","1989","1988","1987","1986","1985","1984","1983","1982","1981","1980","1979","1978"};
                            //  String year_c[] =  {"请选择","2010","2009","2008","2007","2006","2005","2004","2003","2002","2001","2000","1999","1998","1997","1996","1995","1994","1993","1992","1991","1990","1989","1988","1987","1986","1985","1984","1983","1982","1981","1980","1979","1978"};
							for(int i = 0;i < year.size();i++){
                                     out.print(" <option value='"+year.get(i)+"'>"+year.get(i)+"</option>");
                            }%>
						</select>
						
				        <span class="bluetitle">至</span>
				        
				   		<select  id="endyear" name="endyear" style="margin-top:4px;" >
				   			<option value="" selected>请选择</option>
                           <%for(int i = 0;i < year.size();i++) {
                                    out.print(" <option value='"+year.get(i)+"'>"+year.get(i)+"</option>");
                             }%>
                        </select>
				</td>
				<td width="21%" align="right"><span class="bluetitle"></span>&nbsp;</td>
			    <td width="24%" align="left">
				</td>
			  </tr>
			  
			  <tr>
				<td align="right" height="35"><span class="bluetitle">项目类别：</span>&nbsp;</td>
				<td align="left">
					<select name="NewEnergyClass" id="NewEnergyClass" style="margin-top:4px;width:170px;">
					</select>
				</td>
				<td align="right"><span class="bluetitle"><!-- 成果水平： --></span>&nbsp;</td>
			    <td align="left">
			    	<!-- 
			    	<select name="item_2" id="item_2" style="margin-top:4px;">
                    </select> -->
				</td>
			  </tr>
			  
			  <tr>
				<td align="right" height="35"><span class="bluetitle">项目地区：</span>&nbsp;</td>
				<td align="left">
					<select name="province" id="province" style="margin-top:4px;width:170px;">
						<option value="">请选择</option>  
					</select>
				</td>
				<td align="right"><span class="bluetitle"><!-- 成果水平： --></span>&nbsp;</td>
			    <td align="left">
			    	<!-- 
			    	<select name="item_2" id="item_2" style="margin-top:4px;">
                    </select> -->
				</td>
			  </tr>
			  
			  <!-- 
			  <tr>
				<td align="right" height="35"><span class="bluetitle">所处阶段：</span>&nbsp;</td>
				<td align="left">
					<select name="item_16" d="item_16" style="margin-top:4px;">
	                                     	
				    </select>
				</td>
				<td align="right"><span class="bluetitle">所处科技计划：</span>&nbsp;</td>
			    <td align="left">
			    	<select name="item_126_net" id="item_126_net" style="margin-top:4px;">
	                                     	
				    </select>
				</td>
			  </tr> -->
			  
			  <!-- 
			  <tr>
				<td align="right" height="35"><span class="bluetitle">采集渠道：</span>&nbsp;</td>
				<td align="left">
					<select name="source" id="source" style="margin-top:4px;">
	                    <option value="" selected>全部</option>
	                    <option value="1">仅登记成果</option>
                    </select>
				</td>
				<td align="right"><span class="bluetitle">仅限可转让项目：</span>&nbsp;</td>
			    <td align="left">
			    	<input type="checkbox" name="item_32" id="item_32" value="1" />是
			  </tr>
			   -->
			  <!-- 中图分类
			  <tr>
				<td align="right" height="35"><span class="bluetitle">中图分类代码：</span>&nbsp;</td>
				<td align="left">
					<input type="text" name="item_12" id="item_12" class="inputtext1" />　
				</td>
				<td colspan="2" align="left">&nbsp;</td>
			  </tr>
			   -->
			  <tr>
				<td height="30" style=" border-bottom:1px dashed #CCCCCC;">&nbsp;</td>
				<td style=" border-bottom:1px dashed #CCCCCC;">&nbsp;</td>
				<td style=" border-bottom:1px dashed #CCCCCC;">&nbsp;</td>
				<td style=" border-bottom:1px dashed #CCCCCC;">&nbsp;</td>
			  </tr>
			  <tr>
				<td height="50">&nbsp;</td>
				<td align="left">
					
				<a href="javascript:doSearchA();">
					<img src="<%=path%>/common/images/search/botton7.gif" border="0"/>
				</a>
				<a href="javascript:resetForm();">
					<img src="<%=path%>/common/images/search/botton8.gif" border="0"/>
				</a>
				
				</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
			  </tr>
			</table>
			</div>
			<br />
		</div>
	</div>
</div>
<!--页面主体部分 结束-->

    
 </form>
 <%@include file="../../common/bottom.jsp"%>    
</body>
</html>